package net.suntec.mrs;

import net.suntec.mrs.io.IoListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	/** Logger */
	private static final Logger logger = LoggerFactory.getLogger( Main.class );

	/**
	 * @param args
	 */
	public static void main( String[] args ) {

		ApplicationContext context = new ClassPathXmlApplicationContext( "classpath:applicationContext.xml" );

		IoListener ioListener = (IoListener) context.getBean( "ioListener" );
		ioListener.start();

		logger.info( "Succeed to start the message-relay-service!" );
	}

}
